<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <section>
        <h4>宏任务</h4>
        <ul>
            <li>setTimeout</li>
            <li>setInterval</li>
            <li>setImmediate</li>
            <li>xhr</li>
            <li>ui事件</li>
            <li>I/O</li>
            <li>requestAnimationFrame</li>
        </ul>
    </section>
    <section>
        <h4>微任务</h4>
        <ul>
            <li>process.nextTick</li>
            <li>mutationObserver</li>
            <li>promise.then catch finally</li>
        </ul>
    </section>
</body>
</html>